<style>
	.price{margin-bottom: 5px;display: block;float: left;width: 100%;}
	.price i{font-size: 30px;cursor:pointer}
	.layui-input-block input{ padding-left: 10px;height: 38px;margin-right: 5px;
		line-height: 38px;
		line-height: 36px\9;
		border: 1px solid #e6e6e6;
		background-color: #fff;
		border-radius: 2px;}</style>
<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
		  <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
			  <legend>上传订单数据</legend>
			</fieldset>
        <form class="layui-form" action="<?=url('fahuo/uploadOrder');?>">
            <div class="layui-form-item">
              <label class="layui-form-label">请上传csv文件</label>
              <div class="layui-input-block">
			  <button type="button" class="layui-btn" id="upOrder">
				  <i class="layui-icon">&#xe67c;</i>上传文件
			  </button>
			  <br>
			  <div class="layui-form-mid layui-word-aux">上传的快递编号将修改订单的发货状态,快递编号及快递公司</div>
              </div>
            </div>
          <!-- <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
            </div>
          </div> -->
        </form>
      </div>
    </div>
</div>
<script>
layui.use('upload', function(){
  var upload = layui.upload;
  //执行实例
  var uploadInst = upload.render({
    elem: '#upOrder' //绑定元素
    ,url: '<?=url('fahuo/uporder')?>' //上传接口
	,accept:'file'
	,exts:'csv|xls'
    ,done: function(res){
      _action(res);
    }
    ,error: function(){
      alert_msg('请求异常');
    }
  });
});
</script>
